export default {
  '/api/': getApiSidebar(),
  '/components/': getComponentsSidebar(),
  '/guide/': getGuideSidebar()
}

function getApiSidebar() {
  return [
    {
      text: '功能',
      collapsible: true,
      items: [
        {
          text: '已实现',
          link: '/api/'
        },
      ]
    }
  ]
}
// 侧边栏菜单
function getComponentsSidebar() {
  return [
    {
      text: '组件',
      items: [
        {
          text: '倒计时',
          link: '/components/countdown'
        },
        {
          text: 'Tab圆角',
          link: '/components/circleTab'
        },
        {
          text: 'Tab搜索过滤',
          link: '/components/filterTab'
        },
        {
          text: '扩展Modal弹窗',
          link: '/components/hzModal'
        },
        {
          text: 'Button按钮',
          link: '/components/button'
        },
        {
          text: '资源下载按钮',
          link: '/components/downloadBtn'
        },
        {
          text: '图片预览组件',
          link: '/components/imgPreview'
        },
        {
          text: '图片懒加载组件',
          link: '/components/lazyImgLoading'
        },
        {
          text: '自定义当前页数量',
          link: '/components/customPageSize'
        }
        // {
        //   text: 'Tabs 标签页',
        //   link: '/components/tabs'
        // },
        // {
        //   text: 'Modal 对话框',
        //   link: '/components/modal'
        // },
        // {
        //   text: 'Tag 标签',
        //   link: '/components/tag'
        // },
        // {
        //   text: 'Vue 引用组件',
        //   link: '/components/vue'
        // },
        // {
        //   text: 'Vue Script',
        //   link: '/components/vue-script'
        // }
      ]
    }
  ]
}

function getGuideSidebar() {
  return [
    {
      text: '指南',
      items: [
        {
          text: 'Tab圆角',
          link: '/guide/circleTab/'
        },
      ]
    }
  ]
}

